package com.ruoyi.infoPointVideoType.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.infoPointVideoType.mapper.InfoPointVideoTypeMapper;
import com.ruoyi.infoPointVideoType.domain.InfoPointVideoType;
import com.ruoyi.infoPointVideoType.service.IInfoPointVideoTypeService;

/**
 * 视频分类Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-04-12
 */
@Service
public class InfoPointVideoTypeServiceImpl implements IInfoPointVideoTypeService 
{
    @Autowired
    private InfoPointVideoTypeMapper infoPointVideoTypeMapper;

    /**
     * 查询视频分类
     * 
     * @param id 视频分类主键
     * @return 视频分类
     */
    @Override
    public InfoPointVideoType selectInfoPointVideoTypeById(Long id)
    {
        return infoPointVideoTypeMapper.selectInfoPointVideoTypeById(id);
    }

    /**
     * 查询视频分类列表
     * 
     * @param infoPointVideoType 视频分类
     * @return 视频分类
     */
    @Override
    public List<InfoPointVideoType> selectInfoPointVideoTypeList(InfoPointVideoType infoPointVideoType)
    {
        return infoPointVideoTypeMapper.selectInfoPointVideoTypeList(infoPointVideoType);
    }

    /**
     * 新增视频分类
     * 
     * @param infoPointVideoType 视频分类
     * @return 结果
     */
    @Override
    public int insertInfoPointVideoType(InfoPointVideoType infoPointVideoType)
    {
        return infoPointVideoTypeMapper.insertInfoPointVideoType(infoPointVideoType);
    }

    /**
     * 修改视频分类
     * 
     * @param infoPointVideoType 视频分类
     * @return 结果
     */
    @Override
    public int updateInfoPointVideoType(InfoPointVideoType infoPointVideoType)
    {
        return infoPointVideoTypeMapper.updateInfoPointVideoType(infoPointVideoType);
    }

    /**
     * 批量删除视频分类
     * 
     * @param ids 需要删除的视频分类主键
     * @return 结果
     */
    @Override
    public int deleteInfoPointVideoTypeByIds(Long[] ids)
    {
        return infoPointVideoTypeMapper.deleteInfoPointVideoTypeByIds(ids);
    }

    /**
     * 删除视频分类信息
     * 
     * @param id 视频分类主键
     * @return 结果
     */
    @Override
    public int deleteInfoPointVideoTypeById(Long id)
    {
        return infoPointVideoTypeMapper.deleteInfoPointVideoTypeById(id);
    }
}
